package org.yinweichen.llm_dataset_backend.DTO;

import jakarta.validation.constraints.NotNull;

public record StandardAnswerCreateDTO(
        @NotNull String answer,
        @NotNull Long standardQuestionId,

        //TODO:接口改动
        @NotNull String version,
        Boolean active
) {
    public StandardAnswerCreateDTO {
        if (active == null) {
            active = true;
        }
    }

    public StandardAnswerCreateDTO(String answer, Long standardQuestionId,String version) {
        this(answer, standardQuestionId, version,true);
    }
}
